<mat-tab-group (selectedTabChange)="selectedTabChange($event)">
  <mat-tab label="{{'inPersonInfo' | translate}}">
    <app-personin [selectionChange]="tabIndex"></app-personin>
  </mat-tab>

  <mat-tab label="{{'outPersonInfo' | translate}}">
    <app-personout [selectionChange]="tabIndex"></app-personout>
  </mat-tab>
</mat-tab-group>